var express = require("express");
var router = express.Router();
const UserProblemController = require("../controller/UserProController");

//挂载路由

router
  .route("/")
  .post(UserProblemController.addUserProblem)
  .get(UserProblemController.getUserProblem);

router
  .route("/:id")
  .patch(UserProblemController.updateUserProblem)
  .get(UserProblemController.getUserProblemById);

module.exports = router;
